﻿using System;

namespace enyo
{
    public class Iframe : Control
    {
        /// <summary>
        /// URL of the web page to load in the iframe.
        /// </summary>
        public string Url { get; set; }

        public int TabIndex { get; set; }

        /// <summary>
        /// Returns the URL of the loaded page. 
        /// This URL is not necessarily the same as the value of the url property because the value of this.url is not updated when a user navigates to a different URL by interacting with the loaded page.
        /// </summary>
        /// <returns></returns>
        public string FetchCurrentUrl()
        {
            return null;
        }

        /// <summary>
        /// Navigates to the previous web page in the history list.
        /// </summary>
        public void GoBack()
        {
        }

        /// <summary>
        /// Navigates to the next web page in the history list.
        /// </summary>
        public void GoForward()
        {
        }

        /// <summary>
        /// Reloads the page specified by the value of the url property. 
        /// Note that this is not necessarily the same as the currently displayed URL because the url property does not update when the user interacts with the loaded page.
        /// </summary>
        public void Refresh()
        {
        }
    }
}
